//
//  WYCmypolicyViewController.m
//  掌上还
//
//  Created by 王晓民 on 2018/1/13.
//  Copyright © 2018年 中企互联. All rights reserved.
//

#import "WYCmypolicyViewController.h"
@interface WYCmypolicyViewController ()<UIWebViewDelegate>
@property (nonatomic,strong)UIWebView *policyWebView;

@end

@implementation WYCmypolicyViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setupNav];
    [SVProgressHUD showWithStatus:@"加载中..."];

    _policyWebView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, ScreenWidth, ScreenHeight)];
    
    NSString *chinese = @"资金账户安全";
    
    NSString *encodeStr = [chinese stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
    NSLog(@"wqc====%@", encodeStr);
    NSString *str = _bannerUrl;
    NSURLRequest *request =[NSURLRequest requestWithURL:[NSURL URLWithString:str]];
    [SVProgressHUD dismiss];

    [self.view addSubview: _policyWebView];
    
    [_policyWebView loadRequest:request];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}
//Nav字体颜色+ 背景
- (void)setupNav {
    self.navigationItem.title = _bannerName;
    [self.navigationController.navigationBar setTitleTextAttributes:@{NSForegroundColorAttributeName:[UIColor whiteColor]}];
    [self.navigationController.navigationBar setBarTintColor:wycMain];
}

@end
